package com.xiaomaoguai.demo.spock

import spock.lang.Specification

/**
 * @author August.Zhang
 * @version v1.0.0
 * @date 2021/11/3 07:58
 * @since JDK 1.8
 */
class ExampleSpecification extends Specification {

    void setup() {
        println "开始测试"
    }

    def "简单==判断"() {
        expect:
        1 == 1
    }

    def "是否都是0"() {
        expect:
        PhoneUtils.isAllZero("0000")
        !PhoneUtils.isAllZero("1000")
    }

    void cleanup() {
        println "完成测试"
    }
}
